/* 故事要素页面专用样式 */

/* 标签页按钮样式 */
.tab-button {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

/* 标签页内容区域 */
.tab-content {
    padding-bottom: 5rem;
}

.tab-content.hidden {
    display: none;
}

/* 标签容器样式 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* 标签样式 */
.inspiration-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inspiration-tag.selected {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.inspiration-tag:hover {
    border-color: #3b82f6;
}

.inspiration-tag .tag-remove {
    margin-left: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.inspiration-tag.selected .tag-remove:hover {
    opacity: 1;
}

/* 标签占位符 */
.tag-placeholder {
    width: 100%;
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 加载动画 */
.tag-loading {
    width: 100%;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.tag-loading i {
    margin-right: 0.5rem;
}

/* 多行文本截断 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 自定义标签输入框 */
.custom-tag-input {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 360px) {
    .tab-button {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
    
    .tab-button i {
        margin-right: 0.25rem;
    }
} 